import{$ as e,Q as t,ut as n}from"./B603vO-13smUKN.js";import{T as r}from"./aWDZHnvL3RQbKF.js";var i=n(`format-sort`);function a(e,n){if(typeof e!=`string`||typeof n!=`string`)return t(e,n);try{return e.localeCompare(n,r(),{sensitivity:`base`,ignorePunctuation:!0,numeric:!0})}catch(e){i.warn(`localeCompareStrings`,e)}return 0}function o(t,...n){if(n.length>0){let r=n.map(e),i=[...t];return i.sort((e,t)=>{for(let{field:n,asc:i}of r){let r=a(e[n],t[n]);if(r!==0)return i?r:-1*r}return 0}),i}return t}export{o as n,a as t};